import request from '@/utils/request'
// import qs from 'qs'

// get 每周精选数据
export function getSelections(params) {
  return request({
    url: '/ops/selection/get',
    method: 'get',
    params: { tenantId: params }
  })
}

// post 修改每周精选数据
export function saveSelections(data) {
  return request({
    url: '/ops/selection/update',
    method: 'post',
    data
  })
}

// get 获得课程列表数据
export function getCourseList(data) {
  return request({
    url: '/ops/course/list',
    method: 'post',
    data
  })
}

// get 轮播图数据
export function getRotations(params) {
  return request({
    url: '/ops/rotation/get',
    method: 'get',
    params: { tenantId: params }
  })
}

// post 修改轮播图数据
export function saveRotation(data) {
  return request({
    url: '/ops/rotation/update',
    method: 'post',
    data
  })
}

// get 删除轮播图数据
export function deleteRotation(params) {
  return request({
    url: '/ops/rotation/delById',
    method: 'get',
    params: { id: params }
  })
}
